package club.hicode.daydayup.regular;

import cn.hutool.core.util.ReUtil;
import org.junit.Test;

/**
 * 正则表达式测试
 *
 * @author Liu Chunfu
 * @date 2018-05-21 下午4:32
 **/
public class RegularTest {

    private static final String PATTERN = "^[\\s\\S]+\\^[\\s\\S]+\\^[\\s\\S]+[\\.]?[\\s\\S]*$";

    @Test
    public void test1() {

        boolean match = ReUtil.isMatch(PATTERN, "x^y^xxx.xml");
        System.out.println(match);

    }
}
